var CoordInfoJson = {
    "DETJ1": [{ "LayerId": "0_2961160", "X": 0, "Y": 0, "Z": 104.52367, "Yaw": 159.26188, "Pitch": 0, "Roll": 0, "Type": 1 }, //引丹总干渠大桥
			{"LayerId": "0_2964816", "X": 0, "Y": 0, "Z": 122.47392, "Yaw": 349.46474, "Pitch": 0, "Roll": 0, "Type": 1 }, //丁冲河中桥
			{"LayerId": "0_2960999", "X": 0, "Y": 0, "Z": 125.30434, "Yaw": 153.59643, "Pitch": 0, "Roll": 0, "Type": 1 }, //西河中桥
            {"LayerId": "0_2964637", "X": 0, "Y": 0, "Z": 125.45062, "Yaw": 74.608402, "Pitch": 0, "Roll": 0, "Type": 1 }, //旗杆庙1天桥
            {"LayerId": "0_2962729", "X": 0, "Y": 0, "Z": 121.94316, "Yaw": 74.435662, "Pitch": 0, "Roll": 0, "Type": 1 }, //赵庄1天桥
            {"LayerId": "0_3158074", "X": 0, "Y": 0, "Z": 123.1214, "Yaw": 78.932628, "Pitch": 0, "Roll": 0, "Type": 1 }, //赵庄2天桥
    //{"LayerId": "0_2965383", "X": 0, "Y": 0, "Z": 152.20743, "Yaw": 297.7642, "Pitch": 0, "Roll": 0,"Type":1 }, //赵楼互通路基
            {"LayerId": "0_2965436", "X": 0, "Y": 0, "Z": 118.51525, "Yaw": 297.64678, "Pitch": 0, "Roll": 0, "Type": 1 }, //赵楼互通B匝道
            {"LayerId": "0_3150915", "X": 111.8375936, "Y": 32.65921931, "Z": 124.1687, "Yaw": 297.81825, "Pitch": 0, "Roll": 0, "Type": 1 }, //赵楼互通C匝道
            {"LayerId": "0_3158157", "X": 0, "Y": 0, "Z": 0, "Yaw": 0, "Pitch": 0, "Roll": 0, "Type": 2 }, //K0_430_28通道
            {"LayerId": "0_3158376", "X": 0, "Y": 0, "Z": 0, "Yaw": 0, "Pitch": 0, "Roll": 0, "Type": 2 }, //K0_653_00通道
            {"LayerId": "0_3158380", "X": 0, "Y": 0, "Z": 0, "Yaw": 0, "Pitch": 0, "Roll": 0, "Type": 2 }, //K0-877_50通道
            {"LayerId": "0_3158384", "X": 0, "Y": 0, "Z": 0, "Yaw": 0, "Pitch": 0, "Roll": 0, "Type": 2 }, //K1_056_00通道
            {"LayerId": "0_3158386", "X": 0, "Y": 0, "Z": 0, "Yaw": 0, "Pitch": 0, "Roll": 0, "Type": 2 }, //K1_201盖板涵
            {"LayerId": "0_3158388", "X": 0, "Y": 0, "Z": 0, "Yaw": 0, "Pitch": 0, "Roll": 0, "Type": 2 }, //K1_317_30盖板涵
            {"LayerId": "0_3158390", "X": 0, "Y": 0, "Z": 0, "Yaw": 0, "Pitch": 0, "Roll": 0, "Type": 2 }, //K1_481_50通道
            {"LayerId": "0_3158392", "X": 0, "Y": 0, "Z": 0, "Yaw": 0, "Pitch": 0, "Roll": 0, "Type": 2 }, //K1_755_50盖板涵
            {"LayerId": "0_3158395", "X": 0, "Y": 0, "Z": 0, "Yaw": 0, "Pitch": 0, "Roll": 0, "Type": 2 }, //K1_974_65通道
            {"LayerId": "0_3158408", "X": 0, "Y": 0, "Z": 0, "Yaw": 0, "Pitch": 0, "Roll": 0, "Type": 2 }, //K2_421_20盖板涵
            {"LayerId": "0_3158413", "X": 0, "Y": 0, "Z": 0, "Yaw": 0, "Pitch": 0, "Roll": 0, "Type": 2 }, //K4_865_55盖板涵
            {"LayerId": "0_3158423", "X": 0, "Y": 0, "Z": 0, "Yaw": 0, "Pitch": 0, "Roll": 0, "Type": 2 }, //K5_245_75通道
            {"LayerId": "0_3158456", "X": 0, "Y": 0, "Z": 0, "Yaw": 0, "Pitch": 0, "Roll": 0, "Type": 2 }, //K5_500_00通道
            {"LayerId": "0_3158465", "X": 0, "Y": 0, "Z": 0, "Yaw": 0, "Pitch": 0, "Roll": 0, "Type": 2 }, //K5_716_50通道
            {"LayerId": "0_3158472", "X": 0, "Y": 0, "Z": 0, "Yaw": 0, "Pitch": 0, "Roll": 0, "Type": 2} //K5_595_00盖板涵
            ],
    "DETJ2": [{ "LayerId": "0_3155751", "X": 0, "Y": 0, "Z": 124.31808, "Yaw": 293.29847, "Pitch": 0, "Roll": 0, "Type": 1 }, //冢子河大桥
            {"LayerId": "0_2965044", "X": 0, "Y": 0, "Z": 138.53573, "Yaw": 59.883864, "Pitch": 0, "Roll": 0, "Type": 1 }, //k12_739白龙泉水库2排沟中桥
            {"LayerId": "0_2965234", "X": 0, "Y": 0, "Z": 151.636, "Yaw": 68.755693, "Pitch": 0, "Roll": 0, "Type": 1 }, //孟彭路分离式立交桥
            {"LayerId": "0_2965248", "X": 0, "Y": 0, "Z": 139.42396, "Yaw": 14.433406, "Pitch": 0, "Roll": 0, "Type": 1 }, //刘山2交桥
            {"LayerId": "0_2965252", "X": 0, "Y": 0, "Z": 142.23364, "Yaw": 23.916577, "Pitch": 0, "Roll": 0, "Type": 1 }, //让林岗天桥
            {"LayerId": "0_2965269", "X": 0, "Y": 0, "Z": 147.87979, "Yaw": 38.475079, "Pitch": 0, "Roll": 0, "Type": 1 }, //孙家天桥
            {"LayerId": "0_2965290", "X": 0, "Y": 0, "Z": 143.17695, "Yaw": 239.03554, "Pitch": 0, "Roll": 0, "Type": 1 }, //分离式立交
            {"LayerId": "0_2965863", "X": 0, "Y": 0, "Z": 149.9623, "Yaw": 67.93038, "Pitch": 0, "Roll": 0, "Type": 1 }, //排沟中桥
            {"LayerId": "0_2965884", "X": 0, "Y": 0, "Z": 139.05366, "Yaw": 64.578012, "Pitch": 0, "Roll": 0, "Type": 1 }, //白龙泉水库1排沟中桥
            {"LayerId": "0_2966293", "X": 0, "Y": 0, "Z": 134.3758, "Yaw": 35.666232, "Pitch": 0, "Roll": 0, "Type": 1 }, //刘山1交桥
            {"LayerId": "0_3158507", "X": 0, "Y": 0, "Z": 127.47996, "Yaw": 180.49591, "Pitch": 0, "Roll": 0, "Type": 1 }, //彭营天桥
    //{"LayerId": "0_2966321", "X": 0, "Y": 0, "Z": 163.96227, "Yaw": 0, "Pitch": 0, "Roll": 0 }, //彭桥互通路基
            {"LayerId": "0_2966565", "X": 0, "Y": 0, "Z": 134.55783, "Yaw": 0, "Pitch": 0, "Roll": 0, "Type": 1 }, //彭桥互通C匝道桥
                {"LayerId": "0_3157176", "X": 0, "Y": 0, "Z": 164.14597, "Yaw": 45, "Pitch": 0, "Roll": 0, "Type": 1 }, //k6-421-350通道
    {"LayerId": "0_3158081", "X": 0, "Y": 0, "Z": 159.00016, "Yaw": 50, "Pitch": 0, "Roll": 0, "Type": 3 }, //K7-915-00盖板涵
                {"LayerId": "0_3157516", "X": 0, "Y": 0, "Z": 158.11707, "Yaw": 8, "Pitch": 0, "Roll": 0, "Type": 1 }, //K8-309-00盖板涵
                {"LayerId": "0_3157549", "X": 0, "Y": 0, "Z": 153.27192, "Yaw": 25, "Pitch": 0, "Roll": 0, "Type": 1 }, //k8+500通道
                {"LayerId": "0_3157569", "X": 0, "Y": 0, "Z": 153.12152, "Yaw": 58, "Pitch": 0, "Roll": 0, "Type": 1 }, //K8-985-6盖板涵
                {"LayerId": "0_3157579", "X": 0, "Y": 0, "Z": 157.29148, "Yaw": 75, "Pitch": 0, "Roll": 0, "Type": 1 }, //K9-154-00盖板涵
                {"LayerId": "0_3157597", "X": 0, "Y": 0, "Z": 168.50288, "Yaw": 35, "Pitch": 0, "Roll": 0, "Type": 1 }, //K9-893-00盖板涵
                {"LayerId": "0_3157681", "X": 0, "Y": 0, "Z": 173.75046, "Yaw": 50, "Pitch": 0, "Roll": 0, "Type": 1 }, //k10-493-800涵洞
                {"LayerId": "0_3157721", "X": 0, "Y": 0, "Z": 174.67848, "Yaw": 62, "Pitch": 0, "Roll": 0, "Type": 1 }, //K11-395-50盖板涵
                {"LayerId": "0_3157752", "X": 0, "Y": 0, "Z": 171.72687, "Yaw": 58, "Pitch": 0, "Roll": 0, "Type": 1} //k12+860通道
            ]
};

var KR_SetModelCorrd = {
    //skyline二次开发接口调用对象
    //设置模型的坐标位置
    SetModelCorrd: function (Id, SegmentCode) {
        SegmentCode = SegmentCode.replace("-", "");
        var jsonobject = CoordInfoJson[SegmentCode];
        var jsonlength = jsonobject.length;
        var layeroObject = null;
        if (jsonobject != null && jsonlength > 0) {
            for (var i = 0; i < jsonlength; i++) {
                if (jsonobject[i].Type == 1) {
                    //layeroObject = SGWorld66.ProjectTree.GetObject(SGWorld66.ProjectTree.GetNextItem(jsonobject[i].LayerId, 15 /*父节点Id*/))
                    try {
                        layeroObject = SGWorld66.ProjectTree.GetObject(jsonobject[i].LayerId);
                        if (jsonobject[i].X != 0) {
                            layeroObject.Position.X = jsonobject[i].X;
                        }
                        if (jsonobject[i].Y != 0) {
                            layeroObject.Position.Y = jsonobject[i].Y;
                        }
                        layeroObject.Position.Yaw = jsonobject[i].Yaw;
                        layeroObject.Position.Altitude = jsonobject[i].Z;
                        layeroObject.Position.Pitch = jsonobject[i].Pitch;
                        layeroObject.Position.Roll = jsonobject[i].Roll;
                    } catch (e) {
                        alert("aa"+e);
                    }
                }
            }
            try {
                layeroObject = SGWorld66.ProjectTree.GetObject("0_3158081");
                layeroObject.Position.Altitude = 159.00016;
                //layeroObject.Position.Yaw = 50;
                layeroObject.Position.Pitch = 0;
                layeroObject.Position.Roll = 0;
            } catch (e) {

            }
        }
    }
}